package com.soft.face.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.soft.face.entity.UserFace;

import java.util.List;
import java.util.zip.ZipFile;

public interface UserFaceService extends IService<UserFace> {

    /**
     * 文件上传
     *
     * @param zipFile
     * @throws Exception
     */
    void upload(ZipFile zipFile) throws Exception;

    /**
     * 人脸数据缓存
     */
    void cache();

    /**
     * 分析
     *
     * @param thresholds
     */
    JSONObject analyse(List<Float> thresholds) throws Exception;
}
